# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: <francois . archlinux . org>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: Igor Scabini <furester@gmail.com>

pkgname=perl-image-size
pkgver=3.300
pkgrel=5
pkgdesc="Read the dimensions of an image in several popular formats"
arch=(any)
url="https://search.cpan.org/dist/Image-Size/"
license=('LGPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/R/RJ/RJRAY/Image-Size-$pkgver.tar.gz")
sha256sums=('53c9b1f86531cde060ee63709d1fda73cabc0cf2d581d29b22b014781b9f026b')

build() {
  cd "$srcdir"/Image-Size-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Image-Size-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
